//
//  CFDefineAllConst.h
//  WealthElves
//
//  Created by Wealthwiz on 2017/4/26.
//  Copyright © 2017年 Wealthwiz. All rights reserved.
//

#ifndef CFDefineAllConst_h
#define CFDefineAllConst_h

#ifdef DEBUG
#       define CFLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#       define CFLog(...)
#endif

#define kUIScreenBounds   [UIScreen mainScreen].bounds
#define kUIScreenWidth    [UIScreen mainScreen].bounds.size.width
#define kUIScreenHeight   [UIScreen mainScreen].bounds.size.height
#define kUIScreenScale    [UIScreen mainScreen].bounds.size.width/375

#define USERID  @"USERID"
#define WDFirstInstall @"WDFirstInstall"

//第一次启动引导页
#define CFFirstInstall  @"CFFirstInstall"
#define defaults    [NSUserDefaults standardUserDefaults]
// Debugging
#define UDKEY_HOST_TYPE           @"UDKEY_HOST_TYPE"

//统一左右按钮字体大小
#define kNavItemFontSize 14.0


//常用 color －－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－
//统一左右按钮字体颜色
#define kNavItemFontColor [UIColor colorWithRed:231/255.0 green:207/255.0 blue:139/255.0 alpha:1.0]
//统一底部背景颜色
#define kVCBGColor [UIColor colorWithHexString:@"f0f0f0"]

#define kRGB(r, g, b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1.0]
#define kRGBA(r, g, b, a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]


#define kTipAlert(_S_, ...)     [[[UIAlertView alloc] initWithTitle:@"提示" message:[NSString stringWithFormat:(_S_), ##__VA_ARGS__] delegate:nil cancelButtonTitle:@"知道了" otherButtonTitles:nil] show]
//版本号
#define kVersion_Coding [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]
#define kVersionBuild_Coding [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]
#define kDevice_Is_iPhone4 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)
#define kDevice_Is_iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)
#define kDevice_Is_iPhone6 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(750, 1334), [[UIScreen mainScreen] currentMode].size) : NO)
#define kDevice_Is_iPhone6Plus ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1242, 2208), [[UIScreen mainScreen] currentMode].size) : NO)
#define kKeyWindow [UIApplication sharedApplication].keyWindow

#define EyeIsOpen @"eyeIsOpen"

#endif /* CFDefineAllConst_h */
